//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 1995-2003  Microsoft Corporation

Module Name: ser_intf.h

Abstract:


Notes:


--*/
//
//
// (C) Copyright 2007 Marvell International Ltd.
//  All Rights Reserved
//

#pragma once

//
// OS side interface
//
#include <windows.h>

#include "gsm0710_ioctrl.h"

#ifdef __cplusplus
extern "C" {
#endif

// COM driver prototypes
//----------------------
DWORD COM_Init(DWORD dwInfo) ;
BOOL COM_Deinit(DWORD dwData) ;

DWORD COM_Open(DWORD dwData, DWORD dwAccess, DWORD dwShareMode) ;
BOOL COM_Close(DWORD dwOpenData) ;

DWORD COM_Read(DWORD dwOpenData, LPVOID pBuf, DWORD len) ;
DWORD COM_Write(DWORD dwOpenData, LPCVOID pBuf, DWORD len) ;
DWORD COM_Seek(DWORD dwOpenData, long pos, DWORD type) ;

void COM_PowerDown(DWORD dwData) ;
void COM_PowerUp(DWORD dwData) ;

BOOL COM_IOControl(DWORD dwOpenData, DWORD dwCode, PBYTE pBufIn, DWORD dwLenIn, PBYTE pBufOut, DWORD dwLenOut, 
                   PDWORD pdwActualOut) ;
#ifdef __cplusplus
}
#endif

